

// Flutter imports:
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

// Package imports:
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
import 'package:palmf_hid/common/values/values.dart';
import 'package:palmf_hid/common/widgets/logout_widget.dart';

// Project imports:


//删除所有
Widget deleteAllHistory({required Function onSelect}){
  return InkWell(
    onTap: () {
      Get.bottomSheet(
          logoutWidget(
              title: "deleteHistory".tr,
              fucName: "deleteALLData".tr,
              onSelect: () async {
               onSelect();
              },
              onCancel: () {
                Get.back();
              }),
          elevation: 3);
    },
    child: Container(
        padding: EdgeInsets.symmetric(horizontal: 10, vertical: 7),
        decoration: BoxDecoration(
            borderRadius: BorderRadius.circular(5),
            color: MyColor.account_color),
        child: Text(
          "deleteALLData".tr,
          style: TextStyle(color: MyColor.c_FFFFFFFF, fontSize: 14),
        )),
  );
}
